-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(java): add test
scope support for pom.xml
files
#7414
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to update the document?
Yeah. You are right. Thanks! Add info about scopes in e3cfe72 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the table also needs to be updated like npm.
trivy/docs/docs/coverage/language/java.md
Line 18 in e3cfe72
| pom.xml | Maven repository [^1] | Exclude | ✓ | ✓[^7] | - | |
You are right again. |
docs/docs/coverage/language/java.md
Outdated
| Artifact | Internet access | Dev dependencies | [Dependency graph][dependency-graph] | Position | [Detection Priority][detection-priority] | | ||
|------------------|:---------------------:|:------------------:|:------------------------------------:|:--------:|:----------------------------------------:| | ||
| JAR/WAR/PAR/EAR | Trivy Java DB | Include | - | - | Not needed | | ||
| pom.xml | Maven repository [^1] | [Include](#scopes) | ✓ | ✓[^7] | - | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You changed from "Exclude" to "Include", but IMO, it should describe the default behavior. Actually, Node.js says "Excluded" although it supports --include-dev-deps
. If you think "Include" is better, we need to change Node.js and other ecosystems for consistency.
| pom.xml | Maven repository [^1] | [Include](#scopes) | ✓ | ✓[^7] | - | | |
| pom.xml | Maven repository [^1] | [Exclude](#scopes) | ✓ | ✓[^7] | - | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm…
This is a very controversial situation, but I would probably agree with you that we should specify the default behavior in this table.
Updated in 117555f
…asecurity#7414)" This reverts commit 2d97700.
Description
Add
test
scope support and mark these dependencies asDev
.To show these deps - use
--include-dev-deps
flag.Related issues
Dev
dependencies withtest
scope frompom.xml
files #7384Checklist